import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SEntityId } from "../Public/SEntityId";
type int = number;
//class SRobIslandJoin
    
    export  class SRobIslandJoin extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SRobIslandJoin();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.entityId.__write(arg1);
            arg1.writeString(this.playerName);
            arg1.writeString(this.fightAttributeStr);
            arg1.writeString(this.petInfoStr);
            arg1.writeInt(this.guildId);
            arg1.writeString(this.guildName);
            arg1.writeBool(this.isGuildLeader);
            arg1.writeInt(this.petId);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.entityId = new SEntityId();
            this.entityId.__read(arg1);
            this.playerName = arg1.readString();
            this.fightAttributeStr = arg1.readString();
            this.petInfoStr = arg1.readString();
            this.guildId = arg1.readInt();
            this.guildName = arg1.readString();
            this.isGuildLeader = arg1.readBool();
            this.petId = arg1.readInt();
            return;
        }

        public /* const */_type: int=954;

        public /* var */entityId: SEntityId;

        public /* var */playerName: string;

        public /* var */fightAttributeStr: string;

        public /* var */petInfoStr: string;

        public /* var */guildId: int;

        public /* var */guildName: string;

        public /* var */isGuildLeader: Boolean;

        public /* var */petId: int;

        public static /* var */_regist: SRobIslandJoin;
    }

            SRobIslandJoin._regist = new SRobIslandJoin(true);
        